a3bb95b34d8ddc73f0b49be20cd9cad92f6cbaa3,src/main/java/org/cojen/tupl/LocalDatabase.java,LocalDatabase,moveToTrash,#number#number[]#,2232
Before Change
mRegistryKeyMap.store(txn, trashIdKey, nameKey);
}
RedoWriter redo = txnRedoWriter();
if (redo != null) {
long commitPos;
// Note: No additional operations can appear after OP_DELETE_INDEX. When a
// replica reads this operation it immediately commits the transaction in order
// for the deletion task to be started immediately. The redo log still contains
// a commit operation, which is redundant and harmless.
txn.durabilityMode(mDurabilityMode.alwaysRedo());
CommitLock.Shared shared = mCommitLock.acquireShared();
try {
After Change
// for the deletion task to be started immediately. The redo log still contains
// a commit operation, which is redundant and harmless.
txn.durabilityMode(mDurabilityMode.alwaysRedo());
long commitPos;
CommitLock.Shared shared = mCommitLock.acquireShared();
try {
txn.check();
commitPos = txn.mContext.redoDeleteIndexCommitFinal
(txn.mRedo, txn.txnId(), treeId, txn.durabilityMode());
} finally {
shared.release();
}